<html>
<head>
</head>
<body>

<div bgcolor="#fff" style="line-height:1.2em;font-size:100%;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0px;padding:0px">
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tbody>	
		<tr>		
			<td>
				<table width="100%" bgcolor="#485D78" border="0" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td height="35" valign="middle">
							
								<table>
									<tbody><tr>
								<td width="1"></td>
								<td valign="middle" align="center"><font style="font-size:11px;color:#cccccc">
								
								<a href="http://otaha.com" style="text-decoration:none;font-weight:normal;color:#cccccc" target="_blank"><span style="font-size: 20px; font-weight: bold;color: white;">Otaha</span></a>
								
								</font></td>
								</tr>
								</tbody></table>
							
							</td>
						
						</tr>
					
					</tbody>
				
				</table>			
			</td>		
		</tr>	
	</tbody>	
	</table>
	
	<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
	
	<tbody>
		
		<tr>
			<td align="left" valign="top">
			
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			
				<tbody>
				
					<tr>
					
						<td height="14"></td>
					
					</tr>
					
					<tr>
						<td align="left" valign="top">
						
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						
							<tbody>
							<tr>
							<td width="0"></td>
							<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tbody>
							<tr>
							<td height="1"></td>
							</tr>
							<tr>
							<td><font style="font-weight:normal;font-size:21px;color:#0080c1;text-decoration:none;line-height:22px"><a href="http://otaha.com/chanel/?id=<?php echo $this->chanel['id'];?>" style="font-weight:bold;font-size:18px;color:#0080c1;text-decoration:none" target="_blank"><?php echo $this->chanel["name"]?></a></font></td>
							
							</tr>
							
							<tr>
							<td align="left" valign="top">
							
								<a href="http://otaha.com/chanel/?id=<?php echo $this->chanel["id"];?>" style="text-decoration:none;color:#333333" target="_blank"><font face="Arial" color="#444444" style="font-family:'Helvetica Nueue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1.39em;color:#444444">
								
								<?php foreach($this->list_post as $key => $val):?>
								
								<p><b style="color: #666;"><?php echo $val["displayname"] ;?>:</b> 
									<span>
								
									<?php if (strpos($val["content"],'<iframe') !== false):?>
									
										đã chia sẻ link video. 
									
									<?php else:?>
								
									<?php echo strip_tags($val["content"]);?>
									
									<?php endif;?>
									</span></p>
									
									<?php endforeach;?> 
							
							</font>
							</a>
							
							</td>
							<td width="0"></td>
							
							
							
							</tr>
							
							</tbody>
							</table></td>
							</tr>
							</tbody>
						</table>
						
						</td>
					
					</tr>
					
					<tr>
						<td height="11"></td>
					</tr>
					
					<tr>
						<td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0">
						<tbody>
						<tr>
						<td width="0"></td>
						
						
						<?php foreach($this->list_post as $key => $val):?>
						<td>
						<a href="http://otaha.com/post/?id=<?php echo $val["userid"] ;?>" style="line-height:15px;font-size:12px;color:#fff;text-decoration:none" target="_blank"><img src="http://www.otaha.com/upload/<?php echo $val["avatar"];?>" title="<?php echo $val["displayname"];?>" alt="<?php echo $val["displayname"];?>" width="28" height="28" border="0" style="border-radius:2px;display:block"></a>
						</td>						
						<td width="3"></td>
						<?php endforeach;?>
						
						
						 <td><u></u>
						 <u></u>
						</td></tr>
						</tbody>
						</table></td>
						
					</tr>
				
				</tbody>
				
				
				
			</table>
			
			</td>			
		
		</tr>
		
		<tr>
		
			<td align="left" valign="middle">
			
				<?php if($this->list_chanel):?>
				
            	<hr style="border:1px solid #dfdfdf;border-width:1px 0px 0px 0px;margin:20px 0px">
			
				<b><font style="margin-top:25px;border-color:#eae8e3;font-size:14px;color:#141519;line-height:22px;margin-top:0">Danh sách Channel mà bạn có thể thích:</font></b>
				
				<?php foreach($this->list_chanel as $key => $val):?>
		                    	
		 					<div style="padding:9px 12px; border: 0; height: auto;  float: left; opacity:1; width:250px;">
		                    
		                    <div>                    			
		                    	
		                    
		                    	<div>
		                    	
		                    		<div style="color:#999;">
		                    		
		                    			<img style="margin:0; margin-right:12px; float:left; width:48px; height: 48px; border-radius:5px;" src="www.otaha.com/upload/<?php echo $val["logo"];?>" alt="<?php echo $val["name"]?>">
		                    
		                    <div style="float: left; width: 75%;">                    						
		                    	<strong style="color:#333;"><?php echo $val["name"]?></strong>
		                    
		                    <p><?php echo $val["description"]?></p>
		                    
		                    <a href="www.otaha.com/chanel/?id=<?php echo $val['id']?>" target="_blank">Kết nối</a>
		                    
		                    <p></p>
		                    
		                    </div>
		                    
		                    </div>
		                    
		                    </div>
		                    
		                    
		                    </div>
		                    
		                    </div>		                    
		                    
		                    
		 					<?php endforeach;?>	
			
					<?php endif;?>
			
			</td>
		
		</tr>
		
	</tbody>
	
	</table>

</div>

</body>
</html>